import vue from '@vitejs/plugin-vue'
import vueJsx from './vue-jsx'
import createCompression from './compression'
import createAutoImport from './auto-import'
export default function createVitePlugins(viteEnv, isBuild = false) {
    const vitePlugins = [vue()]
    vitePlugins.push(createAutoImport())
    vitePlugins.push(vueJsx(isBuild))
    // 打包构建时开启gzip部署
    isBuild && vitePlugins.push(...createCompression(viteEnv))
    return vitePlugins
}
